package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends TestBase {

  @Test
  public void testEmptyContactCreation() throws Exception {
	app.getNavigationHelper().openMainPage();
	app.getContactHelper().initContactCreation();
	app.getContactHelper().fillFormContactCreation(new ContactData("", "", "", "", "", "", "", "", "-", "-", "", "[none]", "", ""));
    app.getContactHelper().submitContactCreation();
    app.getContactHelper().returnToHomePage();
  }
 
  @Test
  public void testNonEmptyContactCreation() throws Exception  {
    app.getNavigationHelper().openMainPage();
    app.getContactHelper().initContactCreation();
    ContactData contact = new ContactData();
    contact.firstname = "firstname 1";
    contact.lastname = "lastname 1";
    contact.address = "address 1";
    contact.home = "home 1";
    contact.mobile = "mobile 1";
    contact.work = "work 1";
    contact.email = "email 1";
    contact.email2 = "email2 1";
    contact.bday = "1";
    contact.bmonth = "January";
    contact.byear = "1988";
    contact.new_group = "group name 1";
    contact.address2 = "address2 1";
    contact.phone2 = "phone2 1";
    app.getContactHelper().fillFormContactCreation(contact);
	app.getContactHelper().submitContactCreation();
    app.getContactHelper().returnToHomePage();
  }
}
